import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'home',
    component: () => import('../view/HomeView.vue')
  },
  {
    path: '/editFlow',
    name: 'editFlow',
    component: () => import('../view/EditFlowView.vue')
  },
  {
    path: '/runFlow',
    name: 'runFlow',
    component: () => import('../view/RunFlowView.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../view/LoginView.vue')
  },
  {
    path: '/secret',
    name: 'secret',
    component: () => import('../view/SecretView.vue')
  },
  {
    path: '/ssh',
    name: 'ssh',
    component: () => import('../view/SSHView.vue')
  },
  {
    path: '/sshManage',
    name: 'sshManage',
    component: () => import('../view/SSHManageView.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router